import { SnakeNamingStrategy } from 'typeorm-naming-strategies';

export default {
  orm: {
    type: 'mysql',
    host: '127.0.0.1',
    port: 3306,
    username: 'root',
    password: '123456',
    database: 'convenient_service',
    synchronize: false,
    logging: false,
    namingStrategy: new SnakeNamingStrategy(),
  },

  jwt: {
    secret: '123456',
  },

  swagger: {
    title: '便民服务接口文档',
    description: '',
    version: '1.0.0',
    termsOfService: '',
    // contact: {
    //   name: 'API Support',
    //   url: 'http://www.example.com/support',
    //   email: 'support@example.com',
    // },
    // license: {
    //   name: 'Apache 2.0',
    //   url: 'https://www.apache.org/licenses/LICENSE-2.0.html',
    // },
  },
};
